use crate::app::UIComponent;
use eframe::egui;
use eframe::egui::Ui;

#[derive(Default)]
pub struct BottomStatus {}

impl BottomStatus {
    pub fn new() -> BottomStatus {
        Self::default()
    }
}

impl UIComponent for BottomStatus {
    fn update(&mut self, ui: &mut Ui) {
        // 底部信息
        egui::TopBottomPanel::bottom(ui.next_auto_id())
            .show_inside(ui, |ui| {
                ui.centered_and_justified(|ui| {
                    ui.heading("底部状态信息");
                });
            });
    }
}